/* =======================================================================
   VELOX Modal — Variáveis e base
   ======================================================================= */
.v-modal {
    --vx-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    --vx-text: #0f172a;
    --vx-muted: #64748b;
    --vx-border: #e5e7eb;
    --vx-bg: #ffffff;
    --vx-field: #ffffff;
    --vx-ring: #06b6d4;
    --vx-header-bg: linear-gradient(135deg, #eef8fb 0%, #e0f2f7 55%, #d7edf3 100%);
    --vx-header-border: rgba(6, 182, 212, 0.10);
    --vx-header-title: #0b1f33;
    --vx-header-icon-bg: rgba(6, 182, 212, 0.10);
    --vx-header-close-bg: rgba(255, 255, 255, 0.72);
    --vx-header-close-hover: rgba(255, 255, 255, 0.95);
    --vx-ring-soft: rgba(6, 182, 212, .25);
    --vx-placeholder: #94a3b8;
    --vx-disabled-bg: #f8fafc;
    --vx-disabled-tx: #94a3b8;
}

.input-error,
input.campo-vazio,
textarea.campo-vazio {
    outline: 2px solid var(--input-error-outline) !important;
    background-color: var(--input-error-bg) !important;
    transition: background-color 0.3s;
    color: var(--input-error-font) !important;
    font-weight: 500;
}

.vx-select:has(select.campo-vazio) .vx-select__btn {
    outline: 2px solid var(--input-error-outline) !important;
    background-color: var(--input-error-bg) !important;
    color: var(--input-error-font) !important;
}

select.campo-vazio {
    outline: none !important;
    background: transparent !important;
    color: inherit !important;
    font-weight: normal !important;
}

.v-modal,
.v-modal * {
    font-family: var(--vx-font);
}

.v-modal h1,
.v-modal h2,
.v-modal h3 {
    color: var(--vx-text);
    margin: 0 0 .6rem;
}

.v-modal h1 {
    font-size: 1.6rem;
    font-weight: 600;
}

.v-modal h2 {
    font-size: 1.35rem;
    font-weight: 600;
}

.v-modal h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 8px 0;
}

.v-modal .section-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--vx-text);
    text-align: start;
}

/* padrão: section-title NÃO tem chevron */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    user-select: none;
    padding: .25rem 0;
}

/* ✅ chevron só em telas opt-in */
[data-section-toggles="1"] .section-title {
    cursor: pointer;
}

[data-section-toggles="1"] .section-title::after {
    content: "\ea4a";
    font-family: "boxicons";
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .18s ease;
    opacity: .8;
}

[data-section-toggles="1"] .section-title.is-collapsed::after {
    transform: rotate(-90deg);
}

/* container do conteúdo colapsável */
[data-section-toggles="1"] .section-content {
    overflow: hidden;
    transition: height .18s ease;
}

[data-section-toggles="1"] .section-content.is-collapsed {
    height: 0 !important;
}

/* =======================================================================
   Layout
   ======================================================================= */

/* ===== Modal minimalista no estilo do mock ===== */
.v-modal.hidden {
    display: none;
}

.v-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 21474830;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.v-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.v-modal__dialog {
    position: relative;
    margin: 28px 0;
    width: min(900px, 80vw);
    max-height: clamp(320px, 92dvh, 96vh);
    background: var(--vx-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.v-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 26px;

    background: linear-gradient(
        135deg,
        #f6fbfd 0%,
        #eaf6fa 50%,
        #e1f1f6 100%
    );

    border-bottom: 1px solid rgba(15,23,42,0.06);

    position: relative;

    box-shadow:
        inset 0 -1px 0 rgba(0,0,0,0.04),
        0 2px 6px rgba(2,6,23,0.04);
}

.v-modal__header::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(6, 182, 212, 0.00) 0%,
        rgba(6, 182, 212, 0.18) 18%,
        rgba(6, 182, 212, 0.18) 82%,
        rgba(6, 182, 212, 0.00) 100%
    );
}

.v-modal__header + .vx-tabsbar {
    margin-top: -1px;
}

.v-modal__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--vx-header-title);
    letter-spacing: -0.02em;
}

.v-modal__title i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.15),
        rgba(6, 182, 212, 0.05)
    );
    color: var(--vx-ring);
    font-size: 1.05rem;

    box-shadow:
        inset 0 0 0 1px rgba(6, 182, 212, 0.08),
        0 4px 10px rgba(6, 182, 212, 0.15);
}

.v-modal__title-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    border-radius: 10px;
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.15),
        rgba(6, 182, 212, 0.05)
    );
    color: var(--vx-ring);
    font-size: 1.05rem;

    box-shadow:
        inset 0 0 0 1px rgba(6, 182, 212, 0.08),
        0 4px 10px rgba(6, 182, 212, 0.15);
}

.v-modal__title .favorite-page-icon {
    background: transparent !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
}

.v-modal__close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.06);

    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;

    backdrop-filter: blur(6px);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.v-modal__close:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.12);
}

.v-modal__close:active {
    transform: translateY(0);
}

.v-modal__body {
    padding: 16px 18px;
    flex: 1;
    min-height: 0;
    overflow: auto;
    scroll-behavior: smooth;
}

/* Footer fixo, fora do scroll */
.v-modal__footer {
    flex-shrink: 0;
    padding: 14px 18px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    background: #fff;
}

.v-modal .v-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #eef2f7;
    background: #fff;
    position: sticky;
    bottom: 0;
}

/* Evita “scroll dentro de scroll” no fragmento injetado */
.v-modal #dynamic-content,
.v-modal .div-scroll-cadastro {
    overflow: visible !important;
    max-height: none !important;
}

/* deixe inputs do form confortáveis no modal */
.v-modal .container {
    background: #fff;
    padding: 0 6px 16px;
}

.v-modal .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.v-modal .flex-basis-100 {
    grid-column: 1 / -1;
}

/* Avatar redondo bonitinho */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-fallback {
    font-weight: 700;
    color: #334155;
}

/* =======================================================================
   Campos: labels, inputs, textarea, select (nativo)
   ======================================================================= */
.v-modal .label-text-above-input,
.v-modal label[for] {
    display: inline-block;
    font-size: .875rem;
    font-weight: 400;
    color: var(--vx-text);
    line-height: 1;
}

.v-modal .required-input::after {
    content: " *";
    color: #ef4444;
}

.v-modal input:not([type="checkbox"]):not([type="radio"]),
.v-modal select,
.v-modal textarea {
    width: 100%;
    background: var(--vx-field);
    border: 1px solid var(--vx-border);
    border-radius: .75rem;
    color: var(--vx-text);
    padding: 12px 14px;
    height: 2.5rem;
    font-size: .85rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.v-modal textarea {
    height: auto;
    min-height: 110px;
    resize: vertical;
    padding: 12px 14px;
}

.v-modal input::placeholder,
.v-modal textarea::placeholder {
    color: var(--vx-placeholder);
}

.v-modal input:not([type="checkbox"]):not([type="radio"]):focus,
.v-modal select:focus,
.v-modal textarea:focus {
    border-color: var(--vx-ring);
    border-style: solid;
    box-shadow: 0 0 0 1px var(--vx-ring);
}

.v-modal :is(input, select, textarea):disabled {
    background: var(--vx-disabled-bg);
    color: var(--vx-disabled-tx);
}

.v-modal select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background: var(--vx-field) url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}

/* =======================================================================
   Fancy Select
   ======================================================================= */
.vx-select {
    position: relative;
    width: 100%;
}

select.js-fancy-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

/* quando for "up" abre pra cima */
.vx-select.vx-select--up .vx-select__menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.vx-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 35px;
    padding: 0 14px;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    background: #fff;
    color: var(--c-text);
    font-size: var(--fs-sm);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.vx-select__btn:hover {
    background: #fafafa;
}

.vx-select__btn.is-placeholder,
.v-modal .vx-select__btn.is-placeholder,
.v-modal .vx-select__btn.is-placeholder .vx-select__label,
.v-modal .vx-select__btn.is-placeholder .vx-select__text,
.v-modal .vx-select__btn.is-placeholder * {
    color: var(--vx-placeholder);
    font-weight: 400;
    font-size: .85rem;
}

.vx-select__chev {
    margin-left: 10px;
    flex: 0 0 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/20px 20px;
    transition: transform .15s;
}

.vx-select.is-open .vx-select__chev {
    transform: rotate(180deg);
}

.vx-select__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(2, 6, 23, .12);
    padding: 0 6px;
    max-height: 260px;
    overflow: auto;
    z-index: 1;
    display: none;
}

.vx-select.is-open .vx-select__menu {
    display: block;
}

.vx-select.is-disabled {
    opacity: 0.6;
}

.vx-select.is-disabled .vx-select__btn {
    pointer-events: none;
    cursor: not-allowed;
}

.vx-option {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .96rem;
    color: #0f172a;
    user-select: none;
}

.vx-option:hover {
    background: #f1f5f9;
}

.vx-option.is-selected {
    background: var(--c-primary);
    color: #fff;
}

.vx-option.is-disabled {
    color: #94a3b8;
    cursor: not-allowed;
    background: transparent;
}


.vx-select__search-wrap {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 8px;
    z-index: 2;
    border-bottom: 1px solid #e5e7eb;
    }

.vx-select__search {
    width: 100%;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}

.vx-select__search:focus {
    border-color: #22c55e;
}

.vx-select__empty {
    padding: 12px;
    font-size: 14px;
    color: #6b7280;
}

/* =======================================================================
    Checkbox / Radio (estilo turquesa)
   ======================================================================= */
.v-modal .check-with-label,
.v-modal label.check-with-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    line-height: 1;
    height: auto;
    cursor: pointer;
}

.v-modal .check-with-label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.8px solid #cbd5e1;
    background: #fff;
    position: relative;
    transition: box-shadow .15s, border-color .15s, background .15s;
}

.v-modal .check-with-label input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px var(--vx-ring-soft);
    border-color: var(--vx-ring);
}

.v-modal .check-with-label input[type="checkbox"]:checked {
    background: var(--vx-ring);
    border-color: var(--vx-ring);
}

.v-modal .check-with-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: 3px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    align-items: center;
}

.v-modal .div-sexo2 input[type="radio"],
.v-modal .div-radio input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    position: relative;
    margin-right: 6px;
    transition: box-shadow .15s, border-color .15s;
}

.v-modal .div-radio input[type="radio"] {
    flex-direction: row;
    align-items: center;
}

.v-modal .div-sexo2 input[type="radio"]:focus,
.v-modal .div-radio input[type="radio"]:focus {
    box-shadow: 0 0 0 3px var(--vx-ring-soft);
    border-color: var(--vx-ring);
}

.v-modal .div-sexo2 input[type="radio"]:checked,
.v-modal .div-radio input[type="radio"]:checked {
    border-color: var(--vx-ring);
}

.v-modal .div-sexo2 input[type="radio"]:checked::after,
.v-modal .div-radio input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 8px;
    height: 8px;
    background: var(--vx-ring);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.v-modal .div-align-fieldset-content .div-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
}

.v-modal .div-align-fieldset-content .div-radio:hover {
    background: #f8fafc;
}

/* tira margens/pulos que desalinhariam */
.v-modal .div-align-fieldset-content .div-radio input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
}

.v-modal .div-align-fieldset-content .div-radio label {
    margin: 0;
    line-height: 1.2;
}

/* =======================================================================
   Rodapé & Botões
   ======================================================================= */
.v-modal .btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .98rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.v-modal .btn-ghost {
    background: #fff;
    color: #0f172a;
    border-color: #e5e7eb;
}

.v-modal .btn-ghost:hover {
    background: #f9fafb;
}

.v-modal .btn-primary {
    background: var(--vx-ring);
    color: #fff;
}

.v-modal .btn-primary:hover {
    filter: brightness(0.95);
}

/* =======================================================================
   Estados de Erros
   ======================================================================= */
.v-modal .is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}

.v-modal .field-error {
    color: #b91c1c;
    font-size: .85rem;
    margin-top: .35rem;
}

/* =======================================================================
   Uploader estilo Velox
   ======================================================================= */
.v-modal .vx-avatar-uploader {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: 16px;
    padding: 14px 16px;
}

.v-modal .vx-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--vx-disabled-bg);
    border: 1px solid var(--vx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #eef2f7 inset;
}

.v-modal .vx-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v-modal .vx-logo-preview {
    width: 260px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--vx-disabled-bg);
    border: 1px solid var(--vx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #eef2f7 inset;
}

.v-modal .vx-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.v-modal .vx-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 36px;
}

.v-modal .vx-avatar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.v-modal .vx-avatar-hint {
    flex-basis: 100%;
    margin: 0;
    font-size: .82rem;
    color: var(--vx-muted);
}

.vx-field-pulse {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, .25) !important;
    border-color: #06b6d4 !important;
    transition: box-shadow .2s;
}

.v-modal .div-input i,
.v-modal .form-group i,
.v-modal .div-veiculo-negociacao i {
    color: var(--vx-ring);
}

/* =======================================================================
   Notificações na Navbar
   ======================================================================= */
.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #f59e0b;
}

.notif-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    width: 320px;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(2, 6, 23, .15);
    display: none;
    z-index: 2147482000;
}

.notif-menu.is-open {
    display: block;
}

.notif-header {
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid #eef2f7;
}

.notif-list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.notif-item {
    border-radius: 10px;
}

.notif-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #0f172a;
    border-radius: 10px;
}

.notif-link:hover {
    background: #f8fafc;
}

.notif-empty {
    color: #94a3b8;
    padding: 10px 12px;
}

.favorite-page-icon {
    font-size: 1.4rem;
    color: #ffcb05 !important;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: auto;
    margin-top: -10px;
}

.favorite-page-icon:hover {
    transform: scale(1.2);
    color: #ffcb05;
}

/* --------- Adicionado por Gui 06-10-2025 ----------------- */

/* ============================================================
   TinyMCE fix — garantir que menus apareçam acima dos modais
   ============================================================ */
.tox-tinymce-aux,
.tox-silver-sink,
.tox-dialog {
    z-index: 2147484000 !important;
    position: relative !important;
}

/* --------- Adicionado por Gui 08-10-2025 ----------------- */

/* ============================================================
   Css para a paginação
   ============================================================ */

/* ===== Layout para empurrar o #paginacao pro fim da página ===== */
.page-wrap {
    display: flex;
    flex-direction: column;
    max-height: calc(80% - 72px);
}

/* ===== Estilo dos controles já centralizados ===== */
.paginator__wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
    padding-top: .5rem;
}

.paginator__info {
    color: #6b7280;
    font-size: .875rem;
}

.paginator__actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* itens escondidos pela paginação (NÃO pelo filtro) */
.pg-hidden {
    visibility: hidden;
    position: absolute;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none;
}

.paginator__perpage {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-left: .4rem;
    color: #6b7280;
    font-size: .8rem;
}

.paginator__perpage select {
    padding: .15rem 1.4rem .15rem .35rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: .8rem;
    height: 28px;
}

/* ===================== REQUIRED HIGHLIGHT (dentro do modal) ===================== */

/* quando a classe estiver no SELECT nativo */
.v-modal select.vx-required-highlight,
.v-modal input.vx-required-highlight,
.v-modal textarea.vx-required-highlight {
    animation: vxPulse 0.9s ease-in-out 2;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18) !important;
    border-color: #ef4444 !important;
}

/* quando a classe estiver no wrapper do fancy select (.vx-select) */
.v-modal .vx-select.vx-required-highlight .vx-select__btn {
    animation: vxPulse 0.9s ease-in-out 2;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18) !important;
    border-color: #ef4444 !important;
}

/* se por acaso a classe cair direto no botão (.vx-select__btn) */
.v-modal .vx-select__btn.vx-required-highlight {
    animation: vxPulse 0.9s ease-in-out 2;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18) !important;
    border-color: #ef4444 !important;
}

/* toast central dentro do modal */
.vx-center-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147484001;
    background: #fff;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 20px 60px rgba(2, 6, 23, .18);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 280px;
    max-width: min(92vw, 520px);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vx-center-toast__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.vx-center-toast__title {
    font-weight: 700;
    color: #0f172a;
    font-size: .95rem;
    line-height: 1.2;
    margin: 0;
}

.vx-center-toast__text {
    margin: 2px 0 0;
    color: #475569;
    font-size: .88rem;
    line-height: 1.25;
}

/* ===============================================================
   DROPDOWN CADASTRO/ABERTURA DE MODAL/SUBMODAL
   =============================================================== */

/* wrapper do campo */
.field-with-inline-action {
    position: relative;
    width: 100%;
}


/* dá espaço pro botão “dentro” do input */
.input-pesquisa.has-action {
    padding-right: 44px;
}

/* botão absoluto à direita, com cara de botão */
.inline-action-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 0 .6rem;
    border: 0;
    border-left: 1px solid #e5e7eb;
    border-radius: 0 .75rem .75rem 0;
    background: #f9fafb;
    cursor: pointer;
    z-index: 1;
}

/* se o seu input tiver outra altura, esse botão “gruda” e acompanha */
.inline-action-btn .bx {
    font-size: 1.1rem;
    line-height: 1;
}

/* Interações */
.inline-action-btn:hover {
    background: #f3f4f6;
}

.inline-action-btn:active {
    background: #e5e7eb;
}

.inline-action-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* quando o input estiver disabled, “desliga” o botão junto (se quiser) */
.field-with-inline-action:has(.input-pesquisa:disabled) .inline-action-btn {
    pointer-events: none;
    opacity: .5;
}

/* suggestions ocupando a largura do input */
.field-with-inline-action > .suggestions-box {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 2;
}

.dropdown-tipo-pessoa {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
    min-width: 180px;
    z-index: 9999;
}

/* css do loading */
.dropdown-tipo-pessoa a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown-tipo-pessoa a:hover {
    background: #f5f5f5;
}

.dropdown-tipo-pessoa .drop-item {
    font-size: 0.95rem;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: btnSpin .6s linear infinite;
    vertical-align: -2px;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

button.is-loading {
    pointer-events: none;
    opacity: .75;
}

/* ===============================================================
    INPUTS PARA DENTRO DA SIDEBAR DO DASHBOARD
   =============================================================== */

#dashboardEditorSidebar input:not([type="checkbox"]):not([type="radio"]):not([type="color"]) {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    color: #0f172a;
    padding: 12px 14px;
    height: 2.5rem;
    font-size: .85rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

#dashboardEditorSidebar input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 1px #06b6d4;
}

#dashboardEditorSidebar input::placeholder {
    color: #94a3b8;
}